home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Utilities / Creator Changer 1.0.3 / Code and Resource / Creator Changer.choices.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-10-30  |  1.4 KB  |  58 lines  |  [TEXT/KAHL]

  1. /**********************************************************************
  2.  *    This file contains the functions handleing functions.  The two 
  3.  *    functions which are in this file handle the menu choices, and 
  4.  *    decides where to direct them.
  5.  **********************************************************************/
  6.  
  7. #include "Creator Changer.h"
  8. #include "Creator Changer.choices.h"
  9.  
  10.  
  11.  
  12. /**********************************************************************
  13.  *    Function Handle_Apple_Choice(), this function decides what item 
  14.  *    to execute under the apple menu.
  15.  **********************************************************************/
  16.  
  17. void Handle_Apple_Choice(int the_item)
  18.     {
  19.     
  20.     Str32 desk_acc_name;
  21.     int desk_acc_number;
  22.     
  23.     switch(the_item)
  24.         {
  25.         case A_ABOUT_ITEM:
  26.             Alert(ABOUT_DLOG_ID, NIL_PTR);
  27.             break;
  28.         default:
  29.             GetItem(Apple_Menu, the_item, desk_acc_name);
  30.             desk_acc_number=OpenDeskAcc(desk_acc_name);
  31.             break;
  32.         }
  33.     
  34.     }
  35.  
  36.  
  37.  
  38. /**********************************************************************
  39.  *    Function Handle_Options_Choice, this function decides what item
  40.  *    to execute under the options menu.
  41.  **********************************************************************/
  42.  
  43. void Handle_Options_Choice(int the_item)
  44.     {
  45.     
  46.     switch(the_item)
  47.         {
  48.         case O_OPEN_ITEM:
  49.             if(Pick_File()) Open_Changer_DLOG();
  50.             break;
  51.         case O_QUIT_ITEM:
  52.             All_Done=TRUE;
  53.             break;
  54.         default:
  55.             break;
  56.         }
  57.     
  58.     }